package com.dhms.vostok1.data.spot_patrol

import com.squareup.moshi.Json

data class CompanyCategoyData(
    @Json(name = "id")
    val id: Long,
    @Json(name = "name")
    val name: String,
    /* 按category分组的设备 */
    @Json(name = "category_devices")
    val categoryDevices: List<CategoryDevices>? = null,
)

/**
 *
 * @param id
 * @param name
 * @param devices 本 category 下的所有设备
 */

data class CategoryDevices(
    @Json(name = "id")
    val id: Int,
    @Json(name = "name")
    val name: String,
    /* 本 category 下的所有设备 */
    @Json(name = "devices")
    var devices: List<ListDeviceItem>? = null
)

data class ListDeviceItem(
    @Json(name = "id")
    val id: Long,
    @Json(name = "name")
    val name: String,
)